package cn.ad.enumration;

public enum CampaignType {
    
	COMMON(1, "普通"),  //1 普通订单
	FILLVOLUMN(2,"补量"); //2 补量订单
	
	private int value;
	private String description;
	
	private CampaignType(int value, String description) {
		this.value = value;
		this.description = description;
	}
   
	public int getValue() {
		return this.value;
	}

	public String getDescription() {
		return this.description;
	}
	public static CampaignType getCampaignType(int value){
		for(CampaignType type : CampaignType.values()){
			if(value == type.getValue()){
				return type;
			}
		}
		return COMMON;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return value+"";
	}
	
	
	
}
